import Vue from 'vue'
import Router from 'vue-router'
import Index from "./components/Index"

//组件模块
// import Product from './pages/product/product'
// import Home from './pages/home'

Vue.use(Router);

export default new Router({
    routes:[
        {
          path: '/',
          name: 'Index',
          component: Index
        }
      ]
})


// {path: '/product/product', name:'Product',component: Product},
// {path: '/home',name:'Home',component: Home},
// {path: '/',redirect:'/home'}